package com.bjtu.ptsite.model;

import com.baomidou.mybatisplus.annotation.*;
import jdk.jfr.BooleanFlag;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 *
 * @author Zehao Wang, Junjie Zhang, Yutao Wei
 *
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("torrent_comment")
public class TorrentComment {

    @TableId(type = IdType.AUTO)
    private Long id;

    private Long torrentId;

    private Long userId;

    private String content;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    private Boolean deleted;

    private Boolean isAnonymous;

    private Long likes;

    @TableField(exist = false)
    private Boolean isLike;
}
